package cn.hznc.controller.uploadfilestrategy;

import cn.hznc.configuration.MinioHelper;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

/**
 * @Author：Administrator
 * @Date：2024/1/4 17:07
 */
@Component
public class UploadMinio implements UploadFileStrategy{

    @Resource
    private MinioHelper minioHelper;

    @Override
    public void uploadFile(MultipartFile file , String fileName) {
        minioHelper.uploadFile(file , fileName);
    }

}
